import { httpGet, httpPost, httpDelete, httpPut } from '@/api/manager'
// 举个栗子
// ==============================================================================
// 添加鲜花
export const addFlower = (flower) => httpPost('/flower',flower)
// 获取鲜花信息
export const getFlowerList = (data) => httpGet('/flower',data)
// 修改鲜花
export const modifyFlower = (flower) => httpPut('/flower', flower)
// 删除鲜花
export const removeFlower = (id) => httpDelete('/flower', id)
// ===============================================================================

//获取待处理签约
export const contractPendingList = (params) => httpGet("/contract/pending", params)
//获取已处理签约
export const contractProcessedList = (params) => httpGet("/contract/processed", params)
//修改签约状态
export const  modifyContractState = (params) => httpPut("/contract", params)
//修改签约信息
export const modifyContractInformation = (params) => httpPut("/contract/edit", params)
//获得标签列表
export const labelList = (params) => httpGet("/label/list", params)
//获得机构列表
export const organizationList = (params) => httpGet("/organizationIn/list", params)
//获得团队列表
export const teamList = (params) => httpGet("team", params)
//获得服务包列表
export const serviceTableList = (params) => httpGet("serviceTable", params)

//获取工作台数据
export const selectWorkbench = (params) => httpGet("workbench" , params)
//根据id删除标签
export const removeLabel = (id) => httpDelete("label",id)
//根据id修改状态
export const modifyLabelState = (params) => httpPut("/label/state",params)

//登录
export const login = (params) => httpPost("login", params)
//注销
export const logoutUser = (params) => httpGet("logout", params)


// 获取数据概况
export const getDateOverviewList = (params) => httpGet("/stats/dataOverview1", params)

